package com.lyl.security.module.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lyl.security.module.system.dao.SysUserDao;
import com.lyl.security.module.system.entity.SysUser;
import com.lyl.security.module.system.service.SysUserService;
import org.springframework.stereotype.Service;

/**
 * 用户信息表(SysUser)表服务实现类
 *
 * @author Mr Luo
 * @since 2022-09-14 11:26:10
 */
@Service("sysUserService")
public class SysUserServiceImpl extends ServiceImpl<SysUserDao, SysUser> implements SysUserService {

    @Override
    public SysUser getByUsername(String username) {
        return lambdaQuery().eq(SysUser::getUserName, username).one();
    }
}

